package com.aspire.shiro.service.impl;

import com.aspire.shiro.service.SecurityService;
import com.aspire.shiro.tools.DigestsUtil;

import java.util.Map;

public class SecurityServiceImpl implements SecurityService {
    @Override
    public Map<String,String> getPasswordByUsername(String username) {

        //返回通过密码的工具类生成的密码(模拟从数据库查的加密的密码)
        return DigestsUtil.entryPassword("admin");
    }
}
